package com.juice.actuator;

import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @desc:
 * @author: panxiyi
 * @date: 2023/5/14 4:03 下午
 */
@Component
@Endpoint(id="pay", enableByDefault = true)
public class PayEndpoint {


    @ReadOperation
    public Object getPay() {
        System.out.println("======");
        System.out.println("==pay==");
        System.out.println("======");
        Map payMap = new HashMap<>();
        payMap.put("level 1: 钻石会员", 10);
        payMap.put("level 黄金会员", 10);
        payMap.put("level 白银会员", 10);
        return payMap;

    }

}
